import Mock from 'mockjs';

Mock.mock(
  'http://202.120.40.87:14642/api/deployment',
  'get',
  () => ({
    status: '200',
    message: '请求成功',
    data: [{
      replicas: 1,
      availableReplicas: 1,
      name: 'test-service',
      creationTimestamp: '2019-11-08T02:08:05+00:00',
      conditions: [{
        lastTransitionTime: '2019-11-08T02:08:10+00:00',
        lastUpdateTime: '2019-11-08T02:08:10+00:00',
        message: 'Deployment has minimum availability.',
        reason: 'MinimumReplicasAvailable',
        status: 'True',
        type: 'Available',
      },
      {
        lastTransitionTime: '2019-11-08T02:08:05+00:00',
        lastUpdateTime: '2019-11-08T02:08:10+00:00',
        message: 'ReplicaSet "test-service-f979bfbd4" has successfully progressed.',
        reason: 'NewReplicaSetAvailable',
        status: 'True',
        type: 'Progressing',
      },
      ],
    }],
  }),
);
